package com.sgu.common.result;

import java.io.Serializable;
import java.util.List;

/**
 * 分页接口返回
 */
public class PageResult<T>  implements Serializable {


    private static final long serialVersionUID = 1L;
    /**
     * 状态
     */
    private int code;

    /**
     * 备注
     */
    private String msg;

    /**
     * 总数量
     */
    private long count;

    /**
     * 数据
     */
    private List<T> data;

    public PageResult(int code, String msg, long count, List<T> data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public long getCount() {
        return count;
    }
    public void setCount(long count) {
        this.count = count;
    }
    public List getData() {
        return data;
    }
    public void setData(List data) {
        this.data = data;
    }

}